
import {createRouter,createWebHashHistory} from "vue-router"

let routes = [
    {
        name:"login",
        path:"/login",
        component:()=>import("../pages/login/index.vue")
    },
    {
        name:"home",
        path:"/home",
        component:()=>import("../pages/home/index.vue")
    }
]

const router = createRouter({
    history:createWebHashHistory('/base'),//路由模式
    routes
})

export default router
